function dismissRoom() {

    var uid = $('#userIDTxt').val();
    var roomID = $('#roomIDTxt').val();
    if ((!uid || uid.length === 0) && (!roomID || roomID.length === 0 || roomID.length != 6)) {
        $.modal({ body: '请输入正确的房间号' });
        return;
    }


    Swal.fire({
        title: '是否确定解散房间？',
        // text: "是否确定要批量添加选中文章？",
        icon: 'question',
        showCancelButton: true,
        confirmButtonColor: '#198754',
        cancelButtonColor: '#d93444',
        confirmButtonText: '确定',
        cancelButtonText: '取消'
    }).then((result) => {
        if (result.isConfirmed) {
            let data = {
                route: 'dissmissroom',
                roomID,
                userID: uid
            }
            apiRetransmissionToGameServer(data, function (data) {
                if (data.code === 0) {
                    $.modal({ body: '请求成功' });
                }
            });
        }
    })
}


